package org.example.controller;

import jakarta.annotation.Resource;
import jakarta.websocket.server.PathParam;
import org.example.service.feignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:Liu
 * @Testname:FeignController
 * @Date:2025/9/8 17:34
 */
@RestController
@RequestMapping("/feign")
public class FeignController {
    @Resource
    private feignService feignService;

    @GetMapping
    public String A(){
        return feignService.a();
    }

    @GetMapping("/b")
    public String b(@PathParam("name") String name){
        return feignService.b(name);
    }
}
